<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>我的评价</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/swiper.min.css" />
    <link rel="stylesheet" type="text/css" href="../css/layer.css" />
    <link rel="stylesheet" type="text/css" href="../css/mdw.css" />
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../script/swiper.min.js"></script>
    <script type="text/javascript" src="../script/mobile.js"></script>
    <script type="text/javascript" src="../script/layer.js"></script>
    <script type="text/javascript" src="../script/mdw.js"></script>
    <script type="text/javascript" src="../script/jumpPage.js"></script>

</head>
<body class="bg-eee">
    <header class="header">
        <div class="backPrevPage on" onclick="historyBack()"></div>
        <div class="pageTitle">我的评价</div>
        
    </header>
    <section class="evaluatePage HTML_BOX">
        <div class="bg-eee" style="border-bottom:.2rem solid #EEE ; "></div>
        <ul class="evaList">
            <!-- <li>
                <div class="evaBox1 displayFlex">
                    <div class="evaLvl ">
                        <i class="on"></i>
                        <i class="on"></i>
                    </div>
                    <div>2018-9-9</div>
                </div>
                <div class="evaBox2">非常愉快的一次购物，收到的水果新鲜又大。更满意的是一个
都没有坏哟~~</div>
                <div class="evaBox4">
                    <img src="../image/ware_2.png" />
                    <img src="../image/ware_3.png" />
                </div>
                <div class="evaBox3">
                    <div class="wareImage">
                        <img src="../image/testsp.png" />
                    </div>
                    <div class="">玖原农珍 广西优选百香果3斤 约20-24个生鲜水果

单果65-90g</div>
                </div>
            </li>
            <li>
                <div class="evaBox1 displayFlex">
                    <div class="evaLvl ">
                        <i class="on"></i>
                        <i class="on"></i>
                        <i class="on"></i>
                        <i class="on"></i>
                        <i class="on"></i>
                    </div>
                    <div>2018-9-9</div>
                </div>
                <div class="evaBox2">非常愉快的一次购物，收到的水果新鲜又大。更满意的是一个
都没有坏哟~~</div>
                <div class="evaBox3">
                    <div class="wareImage">
                        <img src="../image/testsp.png" />
                    </div>
                    <div class="">玖原农珍 广西优选百香果3斤 约20-24个生鲜水果

单果65-90g</div>
                </div>
            </li> -->
        </ul>
        
    </section>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    var page =1;
    var ifpage = true;
    apiready = function(){
        $api.fixStatusBar($api.dom('header'));
        api.setStatusBarStyle({
            color: '#fff',//设置APP状态栏背景色
            style: 'dark'
        });
        api.addEventListener({
            name: 'scrolltobottom',
            extra: {
                 threshold: 10
            }
         }, function(ret, err) {
             //页码+1，继续请求数据
             if(ifpage){
                page++;
                ready();
             }
        });
        ifCnAndEn();
       ready();
    };
    function ready(){
        getAjax(Interface.member_comment,{token:token,page:page},function(res){
            console.log(JSON.stringify(res));
            var list = res.data;
            if(page==1){
                $(".evaList").empty();
            }
            if(list){
                $(".pageHide").addClass("dn");ifpage=true;
                $.each(list,function(i,item){
                    var name = item.title;
                    var pl = item .pinglun;
                    if(!pl){
                        return;
                    }
                    if(cnen ==2){
                        name = item.egname;
                    }
                    var html='<li>';
                            html+='<div class="evaBox1 displayFlex">';
                                html+='<div class="evaLvl ">';
                                for(var index = 0; index<pl.star;index++){
                                    html+='<i class="on"></i>';
                                }
                                html+='</div>';
                                html+='<div>2018-9-9</div>';
                            html+='</div>';
                            html+='<div class="evaBox2">'+pl.content+'</div>';
                            html+='<div class="evaBox4">';
                                // <img src="../image/ware_2.png" />
                                // <img src="../image/ware_3.png" />
                            html+='</div>';
                            html+='<div class="evaBox3">';
                                html+='<div class="wareImage">';
                                    html+='<img src="'+getImg(item.icon)+'" />';
                                html+='</div>';
                                html+='<div class="">'+name+'</div>';
                            html+='</div>';
                        html+='</li>';
                    $(".evaList").append(html);
                })
                if(list.length<10){
                    $(".getPage").hide();
                }
            }else{
                 ifpage=false;
                 if(page==1){$(".pageHide").removeClass("dn");}
            }
        },function(res,err){})
    }
    
</script>
<script type="text/javascript">
    function ifCnAndEn(){
        if(cnen==2){
            $(".pageTitle").eq(0).html('My Reviews');
        }
    }
</script>
</html>